package com.oanda.blackberry.restapi;

public class RestThread extends Thread {
    private boolean isWorking = true;

    public RestThread() {
        this.isWorking = true;
    }

    public synchronized boolean isWorking() {
        return this.isWorking;
    }

    public synchronized void stopConn() {
        if (!this.isWorking) {
            return;
        }

        this.isWorking = false;
        try {
            interrupt();
        } catch (Exception localException) {
        } finally {
        }
    }
}
